package com.cskaoyan.service;

import com.cskaoyan.bean.CskaoyanmallAdmin;

import com.cskaoyan.bean.CskaoyanmallRole;
import com.cskaoyan.bean.bo.PermissionBo;
import com.cskaoyan.bean.vo.*;

import java.util.List;

/**
 * @author Fantasylkh
 */
public interface SystemService {
    List<RoleOptionsVo> roleOptions();

    AdminListVo adminList(int page, int limit,String username, String sort, String order);

    CskaoyanmallAdmin adminCreate(CskaoyanmallAdmin cskaoyanmallAdmin);

    int deleteAdmin(CskaoyanmallAdmin admin);

    CskaoyanmallAdmin updateAdmin(CskaoyanmallAdmin admin);

    RoleListVo roleList(int page, int limit, String name, String sort, String order);

    CskaoyanmallRole roleCreate(CskaoyanmallRole role);

    int roleUpdate(CskaoyanmallRole role);

    int roleDelete(CskaoyanmallRole role);

    int selectName(CskaoyanmallAdmin cskaoyanmallAdmin);

    LogListVo logList(int page, int limit, String name, String sort, String order);

    RolePermissionsVo rolePermissions(int roleId);

    void permissions(PermissionBo bo);

    TotalVo selectTotalNum();

}
